var arr = [12, 34, 32, 89, 4]
var min=arr.sort((a,b)=>a-b)[0]
console.log(min)